package com.ht.service.impl;

import com.ht.bean.*;
import com.ht.dao.XueShengDuanDao;
import com.ht.service.XueShengDuanService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

@Service
public class XueShengDuanServiceImpl implements XueShengDuanService {
    @Autowired
    private XueShengDuanDao xsd;

    //申请维修
    @Override
    public boolean addweixiu(Equipmentrepair equipmentrepair) {
        return xsd.addweixiu(equipmentrepair);
    }
    //查询班级
    @Override
    public List<Studentclass> allstuclass() {
        return xsd.allstuclass();
    }
    //查询班级
    @Override
    public String stuclass(Integer classId) {
        return xsd.stuclass(classId);
    }

    //查询部门
    @Override
    public List<Map> alldep() {
        return xsd.allDep();
    }

    //查询员工
    @Override
    public List<Map> allemp() {
        return xsd.allemp();
    }
    //添加反馈
    @Override
    public boolean addfankui(Feedback feedback) {
        return xsd.addfankui(feedback);
    }
    //查学生ID
    @Override
    public Student upstubyid(Integer stuId) {
        return xsd.allstubyid(stuId);
    }

    //查询密码
    @Override
    public Student studentpsw(String password) {
        return xsd.studentpsw(password);
    }
    //新增密码
    @Override
    public boolean xgmm(Integer stuId,String password) {
        return xsd.xgmm(stuId,password);
    }
}
